<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="icon" href="../../favicon.ico"/>
        <title>Schedule</title>
        <link href="resources/css/bootstrap.min.css" rel="stylesheet"/>
        <link href="resources/css/general.css" rel="stylesheet"/>
        <link href="resources/css/schedule.css" rel="stylesheet"/>
        <link href="resources/datepicker/css/datepicker.css" rel="stylesheet"/>
        <script type="text/javascript" src="resources/js/jquery-2.1.1.min.js"></script>
        <script type="text/javascript" src="resources/js/schedule.js"></script>
        <script type="text/javascript" src="resources/datepicker/js/bootstrap-datepicker.js"></script>
        <script type="text/javascript">
            $(document).ready(
                    function() {
                        $('.datefield').datepicker({format: 'dd/mm/yyyy'});
                    }
            );
        </script>
    </head>

    <body>
        <jsp:include page="nav-bar.jsp" />
        <div class="container">

            <h2 class="form-signin-heading">Shipping Schedule</h2>
            <br />

            <h4>Please search for a shipping plan and proceed with the booking</h4>

            <form id="search-form" class="navbar-form navbar-left" role="form" onsubmit="search();return false;">
                <div class="form-group">
                    <input name="departurePort" type="text" class="form-control" placeholder="Port of Departure">
                    <input name="arrivalPort" type="text" class="form-control" placeholder="Port of Arrival">
                    <input name="startDate" type="text" class="form-control datefield bfh-datepicker" placeholder="Start Date">
                    <input name="endDate" type="text" class="form-control datefield" placeholder="End Date">
                </div>
                <button type="submit" class="btn btn-default">Search</button>
            </form>

            <div id="schedule-items"></div>
        </div>
    </body>
</html>
